package com.iecg.dao;

import com.iecg.api.entity.IecgCheckData;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface IecgCheckDataRepository extends MongoRepository<IecgCheckData, String> {

	Optional<List<IecgCheckData>> findAllByBizId(String bizId);

	Optional<IecgCheckData> findIecgCheckDataByBizIdAndLeadType(String bizId, String leadType);

	Optional<IecgCheckData> findIecgCheckDataByBizId(String bizId);
}



